package edu.mju.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author CBL
 * @since 2020-12-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Permission对象", description="")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "上级节点")
    private Integer pid;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "类型（1：菜单，2：按钮）")
    private Integer type;

    @ApiModelProperty(value = "访问路径")
    private String path;

    @ApiModelProperty(value = "状态（0：禁止，1：正常）")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除：1已删除，0未删除")
    private Boolean isDeleted;

    private Date gmtCreate;

    private Date gmtModified;


}
